import request from '@/utils/request'

export function getList(page, hospSetVo) {
    return request({
      url: '/admin/hosp/hospitalSet/findPageHospSet',
      method: 'post',
      params:page,
      data: hospSetVo,
    })
}

export function removeById(ids) {
  return request({
    url: `/admin/hosp/hospitalSet`,
    method: 'delete',
    data: ids
  })
}

export function lockHospSet(id,status) {
  return request({
    url: `/admin/hosp/hospitalSet/lockHospSet/${id}/${status}`,
    method: 'put',
  })
}

export function save(hospSet) {
  return request({
    url: '/admin/hosp/hospitalSet/saveHospitalSet',
    method: 'post',
    data: hospSet
  })
}

export function detail(id) {
  return request({
    url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
    method: 'get',
  })
}

export function edit(hospSet) {
  return request({
    url: '/admin/hosp/hospitalSet/editHospitalSet/',
    method: 'post',
    data: hospSet,
  })
}

